Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: change ffi wallet recovery interface #6636

Merged

Conversation

hansieodendaal
Copy link
Contributor

Description

Changed the FFI wallet recovery interface to accept a list of base node peers for recovery instead of only a single peer. This will enable the mobile wallet to pass all seed peers to the recovery process instead of only a single peer.

Motivation and Context

The recovery process for the mobile wallet should work in the same way that the console wallet does.

How Has This Been Tested?

Must be tested with system-level tests with the mobile wallet.

What process can a PR reviewer use to test or verify this change?

Code review.

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

BREAKING CHANGE: Wallet FFI method pub unsafe extern "C" fn wallet_start_recovery( had an interface update.

Changed the FFI wallet recovery interface to accept a list of base node peers
for recovery instead of only a single peer. This will enable the mobile wallet
to pass all seed peers to the recovery process instead of only a single peer.
Copy link

github-actions bot commented Oct 16, 2024

Test Results (CI)

    3 files    129 suites   35m 41s ⏱️
1 337 tests 1 337 ✅ 0 💤 0 ❌
4 009 runs  4 009 ✅ 0 💤 0 ❌

Results for commit e270ef6.

♻️ This comment has been updated with latest results.

@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Oct 16, 2024
Copy link

github-actions bot commented Oct 16, 2024

Test Results (Integration tests)

 2 files  + 2  11 suites  +11   38m 11s ⏱️ + 38m 11s
36 tests +36  34 ✅ +34  0 💤 ±0  2 ❌ +2 
38 runs  +38  36 ✅ +36  0 💤 ±0  2 ❌ +2 

For more details on these failures, see this check.

Results for commit e270ef6. ± Comparison against base commit 1319e24.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@SWvheerden SWvheerden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a much better design

@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Oct 16, 2024
@SWvheerden SWvheerden merged commit c6cbbc1 into tari-project:development Oct 16, 2024
16 of 17 checks passed
@hansieodendaal hansieodendaal deleted the ho_ffi_wallet_recovery branch October 16, 2024 14:18
sdbondi added a commit to sdbondi/tari that referenced this pull request Oct 17, 2024
* development:
  feat: change ffi wallet recovery interface (tari-project#6636)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants